package com.qingxin.wuye.repertory.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
/**
 * 仓库档案
 * @author hezhiwei
 *
 */
@Entity
@Table(name = "repertory")
public class Repertory extends com.qingxin.sys.entity.BaseEntity implements
		java.io.Serializable {

	private static final long serialVersionUID = -9160235974644514781L;
	private String repertoryid;
	private String code;//仓库编号
	private String name;//仓库名称
	private String address;//地址
	private String person;//联系人
	private String phone;//联系电话
	private String remark;
	private String createBy;
	private Date createTime;

	// Constructors

	/** default constructor */
	public Repertory() {
	}

	/** minimal constructor */
	public Repertory(String repertoryid) {
		this.repertoryid = repertoryid;
	}

	/** full constructor */
	public Repertory(String repertoryid, String code, String name,
			String address, String person, String phone, String remark,
			String createBy, Date createTime) {
		this.repertoryid = repertoryid;
		this.code = code;
		this.name = name;
		this.address = address;
		this.person = person;
		this.phone = phone;
		this.remark = remark;
		this.createBy = createBy;
		this.createTime = createTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "repertoryid", unique = true, nullable = false, length = 50)
	public String getRepertoryid() {
		return this.repertoryid;
	}

	public void setRepertoryid(String repertoryid) {
		this.repertoryid = repertoryid;
	}

	@Column(name = "code", length = 100)
	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "name", length = 100)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "address", length = 100)
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "person", length = 100)
	public String getPerson() {
		return this.person;
	}

	public void setPerson(String person) {
		this.person = person;
	}

	@Column(name = "phone", length = 100)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "remark")
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "create_by", length = 100)
	public String getCreateBy() {
		return this.createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	@Column(name = "create_time", length = 23)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}